#include"progress.h"

void downlode()
{
    int target=TARGET_SIZE;
    int total=0;
    while(total<target)
    {
        total+=DOWNLODE_SIZE;
        progress_v2(total*100/target);
        usleep(STIME);
    }
}
int main()
{
//    //版本1测试
//    progress_v1();


    //版本2测试
    downlode();
   
    printf("\n");
    return 0;
}
